package com.matrix.java.chap_05;

/*
    求满足 n的立方<12000的 n 的最大值
 */
public class Ex5_13 {
    public static void main(String[] args) {
        int square = 13000;
        double num = 51;
        while (square > 12000) {
            num--;
            square = (int) Math.pow(num, 3);
        }
        System.out.println((int) num);
    }
}

